package com.lianyu507.util;

/**
 * Created by Peter on 2017/7/27.
 */
public class ThreadLocalUtil {

    private static ThreadLocal<String> user = new ThreadLocal<String>();



    private ThreadLocalUtil() {
    }

    public static String getLoginToken() {
        return user.get();
    }

    public static void romve() {
        user.remove();
    }

    public static void setLoginSession(String token) {
        user.set(token);
    }
}
